<template>
  <div id="app">
    <Header></Header>
    <router-view></router-view>
    <Footer v-show="!$route.meta.isHiddenFooter"></Footer>
  </div>
</template>

<script>
import Footer from "@/components/Footer"
import Header from "@/components/Header"
export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
   mounted(){
        //触发store中的actions方法异步去请求数据，获得三级导航数据
        this.$store.dispatch('home/getCategoryListData')
        },
}
</script>

<style>

</style>
